export  function  isSuperAdmin () {
    if (sessionStorage.getItem('isSuperAdmin') == 1) {
        return true
    } else {
        return false
    }
}

/*
* {value:1,name:'xxx'} 列表回显name用
*  list 数据源,
* value 查询值,
* key 数据源属性,
* label 数据源名称
* **/
let getSelectName = (list, value, key, label) => {
    if (!value) return
    let item = list.find(item => item[key] == value)
    return item[label]
}
export {getSelectName }
